<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>您身边真实有效的折扣、外卖、特色商户信息 - 未央店</title>
</head>
<?php
//判断是否存在cookie
if( isset($_COOKIE["school"]) ) //存在cookie
{
	echo '<script type="text/javascript">';
	echo 'setTimeout("location=\''.$_COOKIE["school"].'\'");';
    echo '</script>';
}
else  //不存在cookie
{
	echo '<script type="text/javascript">';
	echo 'setTimeout("location=\'./schoollist.html\'");';
    echo '</script>';
}


?>

<script type="text/javascript">
function judgeCookie()
{
	var isCookie=navigator.cookieEnabled?true:false;
	if( ! isCookie )//说明浏览器cookie未启动
		alert( "您浏览器的 cookie 功能被禁用，请启用此功能。否则将有可能发生未知错误或无法登录注册。" );
}
window.onload = function () { judgeCookie(); };
</script>